const flag = 'TODOS'

export function getLocal() {
  const data = localStorage.getItem(flag)
  if (data) {
    return JSON.parse(data)
  } else {
    return null
  }
}

export function setLocal(data) {
  localStorage.setItem(flag, JSON.stringify(data))
}
